package com.example.demo.service.impl;

import com.example.demo.dao.ScoreRepository;
import com.example.demo.dao.UserRepository;
import com.example.demo.model.entity.ScoreModel;
import com.example.demo.model.entity.UserModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ScoreService {

    @Resource
    ScoreRepository scoreRepository;

    public Page<ScoreModel> getScorePage(Specification specification, Pageable pageable) {
        return scoreRepository.findAll(specification, pageable);
    }


}
